<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
       "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  <%= javascript_include_tag :defaults %>
	<%= javascript_include_tag 'prototype' %>
<head>
  <meta http-equiv="content-type"
        content="text/html;charset=UTF-8" />
  <title>Posts: <%= controller.action_name %></title>
<%= progress_bar_includes %>
</head>
<body style="background: #FFFFFF;">

<p style="color: green"><%= flash[:notice] %></p>
<% if session[:user_id] %>
<% if User.find(session[:user_id]).admin %>
	<%= link_to 'admin site', :controller => 'admin', :action => 'index' %>
<% end %>
<%= link_to 'logout', logout_user_path  %>
<%= link_to 'manage your torrent dam account', manage_account_user_path  %>
<%= link_to 'home', :controller => 'torrent', :action => 'index' %>
<% end %>
<%= yield  %>

</body>
</html>
